package com.kai.steering.data.service.entity.vo;

import com.kai.steering.data.service.entity.domainObject.CaretakerDO;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.*;

import java.io.Serializable;
import java.util.Date;

/**
 * <pre>
 * 管理员 VO对象
 * </pre>
 *
 * @author kai
 * @date 2022-02-23
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@Builder
@ToString
@EqualsAndHashCode(callSuper = false)
@ApiModel(value = "CaretakerVO对象", description = "管理员业务视图")
public class CaretakerVO implements Serializable {
    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "账号")
    private String caretakerId;
    @ApiModelProperty(value = "密码")
    private String password;
    @ApiModelProperty(value = "用户名")
    private String caretakerName;
    @ApiModelProperty(value = "用户简介")
    private String introduce;
    @ApiModelProperty(value = "用户生日期")
    private Date birthday;
    @ApiModelProperty(value = "管理员id")
    private String founder;
    @ApiModelProperty(value = "创建日期")
    private Date creationDatetime;
    @ApiModelProperty(value = "用户电话")
    private String phone;
    @ApiModelProperty(value = "用户地址")
    private String address;

    public CaretakerVO(CaretakerDO caretaker) {
        this.caretakerId=caretaker.getCaretakerId();
        this.password=caretaker.getPassword();
        this.caretakerName=caretaker.getCaretakerName();
        this.introduce=caretaker.getIntroduce();
        this.birthday=caretaker.getBirthday();
        this.founder=caretaker.getFounder();
        this.creationDatetime=caretaker.getCreationDatetime();
        this.phone=caretaker.getPhone();
        this.address=caretaker.getAddress();
    }
}